package cn.rengy.web.framework.datagrid.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import cn.rengy.web.framework.datagrid.service.DataGridService;


/**
 * 
 */
@Controller
@RequestMapping(value = "/grid/form")
public class FormViewController {
	private static Logger logger = LoggerFactory.getLogger(FormViewController.class);
	
	@Autowired
	private DataGridService dataGridService;
	
	@RequestMapping(value="/insert/view",method = RequestMethod.GET)
	public ModelAndView insertView(@RequestParam Long grid_id){
		
		return dataGridService.insertView(grid_id);
	}
}
